import request from '@/utils/request'

// 查询利润分类列表
export function listProfitCategory(query) {
  return request({
    url: '/operations/profitCategory/list',
    method: 'get',
    params: query
  })
}

// 查询利润分类详细
export function getProfitCategory(id) {
  return request({
    url: '/operations/profitCategory/' + id,
    method: 'get'
  })
}

// 新增利润分类
export function addProfitCategory(data) {
  return request({
    url: '/operations/profitCategory',
    method: 'post',
    data: data
  })
}

// 修改利润分类
export function updateProfitCategory(data) {
  return request({
    url: '/operations/profitCategory',
    method: 'put',
    data: data
  })
}

// 删除利润分类
export function delProfitCategory(id) {
  return request({
    url: '/operations/profitCategory/' + id,
    method: 'delete'
  })
}

